home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
umich
/
utils
/
files~07
/
slectric.lzh
/
DOKU
/
SAMPLE.C
< prev
next >
Wrap
C/C++ Source or Header
|
1986-02-06
|
1KB
|
56 lines
/* ------------------------------------------------------------------------- */
/* ----- sample.c ----- Selectric Example ---------------------------------- */
/* ------------------------------------------------------------------------- */
/* ----------------------------------------- (c) 1992 by Oliver Scheel ----- */
/* ------------------------------------------------------------------------- */
#include <stdio.h>
#include <aes.h>
#include "fsel_inp.h"
/* ------------------------------------------------------------------------- */
char p0[128] = "C:\\ACCS\\*.AC?",
p1[128] = "C:\\TOOLS\\*.*",
p2[128] = "",
p3[128] = "";
char e0[17] = "*.AC[CX]",
e1[17] = "*.PRG",
e2[17] = "*.TXT,*.DOC",
e3[17] = "*.INF";
char *my_paths[4] = { p0, p1, p2, p3 };
char *my_ext[4] = { e0, e1, e2, e3 };
char more_fnames[5 * 15]; /* entspricht 5 Namen a 15 Zeichen */
char pfname[128] = "",
pname[128] = "",
fname[14] = "";
/* ------------------------------------------------------------------------- */
int main(void)
{
int is_slct_da;
appl_init();
slct_extpath(4, &my_ext, 4, &my_paths); /* eigene Pfade setzen */
is_slct_da = slct_morenames(1, 5, more_fnames); /* we want more */
if(file_select(pfname, pname, fname, "*.*", "Selectric\277 Sample"))
{
if(is_slct_da)
{
/* weggucken ... */
printf("\r\nYou wanted more ... \r\n\n%s", more_fnames);
}
}
appl_exit();
return(0);
}